package com.bw.mvvm.entity;

import com.bw.mvvm.entity.BaseEntity;

import java.io.Serializable;
import java.util.List;

public class ClassFiyTableEntity extends BaseEntity  {

    /**
     * status : 0
     * message : 分类列表获取成功
     * data : [{"id":1,"category_name":"电脑办公","category_icon":null,"parent_id":0},{"id":2,"category_name":"手机数码","category_icon":null,"parent_id":0},{"id":3,"category_name":"男装","category_icon":null,"parent_id":0},{"id":4,"category_name":"女装","category_icon":null,"parent_id":0},{"id":5,"category_name":"家用电器","category_icon":null,"parent_id":0},{"id":6,"category_name":"食品生鲜","category_icon":null,"parent_id":0},{"id":7,"category_name":"酒水饮料","category_icon":null,"parent_id":0},{"id":8,"category_name":"玩具乐器","category_icon":null,"parent_id":0},{"id":9,"category_name":"汽车用品","category_icon":null,"parent_id":0},{"id":10,"category_name":"家具家装","category_icon":null,"parent_id":0},{"id":11,"category_name":"礼品鲜花","category_icon":null,"parent_id":0},{"id":12,"category_name":"生活旅行","category_icon":null,"parent_id":0},{"id":13,"category_name":"二手商品","category_icon":null,"parent_id":0}]
     */

    private List<DataBean> data;


    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements Serializable {
        /**
         * id : 1
         * category_name : 电脑办公
         * category_icon : null
         * parent_id : 0
         */

        private int id;
        private String category_name;
        private Object category_icon;
        private int parent_id;
        private boolean flag = false;

        public boolean isFlag() {
            return flag;
        }

        public void setFlag(boolean flag) {
            this.flag = flag;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getCategory_name() {
            return category_name;
        }

        public void setCategory_name(String category_name) {
            this.category_name = category_name;
        }

        public Object getCategory_icon() {
            return category_icon;
        }

        public void setCategory_icon(Object category_icon) {
            this.category_icon = category_icon;
        }

        public int getParent_id() {
            return parent_id;
        }

        public void setParent_id(int parent_id) {
            this.parent_id = parent_id;
        }
    }
}
